{% extends 'layout.html.twig' %}

{% block body %}



    <h2>创建留言</h2>

    <form action="{{ path('entry_create') }}" method="post">
        <div class="form-group">
            <label>标题</label>
            <input type="text" name="title"  class="form-control" />
        </div>
        <div class="form-group">
            <label>内容</label>
            <input type="textarea" name="body" class="form-control" />
        </div>

        {{ form_csrf_token() }}
        <button type="submit" class="btn btn-primary">创建留言</button>
    </form>



{% endblock %}
